// ActivityWatcher.h: interface for the CActivityWatcher class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ACTIVITYWATCHER_H__158ECA50_E7EB_4733_8CA2_075D37563FC3__INCLUDED_)
#define AFX_ACTIVITYWATCHER_H__158ECA50_E7EB_4733_8CA2_075D37563FC3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

const int DIGIT_S=0x30, DIGIT_E=0x39, LETTER_S=0x41, LETTER_E=0x5A,
	COMMON_S=0x20, COMMON_E=0x2F, NPAD_S=0x60, NPAD_E=0x6F;

class CActivityWatcher  
{
public:
	static CActivityWatcher& Instance();

	bool Update();

protected:
	CPoint m_Last;

	int m_TestCodes[
		DIGIT_E-DIGIT_S+LETTER_E-LETTER_S+
		COMMON_E-COMMON_S+NPAD_E-NPAD_S+4
		];

	bool CheckKeyBoard();
	bool CheckMouseMove();
	bool CheckMouseClick();

	CActivityWatcher();
};

#endif // !defined(AFX_ACTIVITYWATCHER_H__158ECA50_E7EB_4733_8CA2_075D37563FC3__INCLUDED_)
